package com.ftg.learn.chapter09.pattern.proxy;

/**
 * 歌手
 * 资源
 * 目标类  --->
 * @author kangjx
 * @version 1.0
 * @date 2023/1/30 上午11:03
 */
public class Singer implements Actor{

    private String name;

    public Singer(String name){
       this.name = name;
    }

    public String getName(){
        return this.name;
    }

    /**
     * 唱歌
     */
    @Override
    public String singSong(){
        return this.name +"唱歌";
    }

}
